package mk.jug.academy.model;

import java.util.List;

/**
 * Models the return structure of a paging result.
 * 
 * @author Ice.Penov
 */
public class Page<T extends BaseEntity> {
	
	private List<T> items;
	private Integer totalCount;
	
	public Page(List<T> list, Integer count) {
		this.items = list;
		this.totalCount = count;
	}
	
	/**
	 * Returns the list.
	 */
	public List<T> getItems() {
		return items;
	}

	/**
	 * Setter for the list.
	 */
	public void setItems(List<T> list) {
		this.items = list;
	}

	/**
	 * Returns the count.
	 */
	public Integer getTotalCount() {
		return totalCount;
	}

	/**
	 * Setter for the count.
	 */
	public void setTotalCount(Integer count) {
		this.totalCount = count;
	}
	
}